UCase (str)

UCase and UpperCase (str) are equivalent functions. However, UCase is preferred in Basic syntax, whereas UpperCase is preferred in Crystal syntax.

Argument

str is a text String value

Returns

String value.

Action

UCase converts the given string to all upper case and returns it.

Typical use

A good use of this function is when a field contains both uppercase and lowercase letters and you want to convert all letters to uppercase for consistency.

Examples

The following examples are applicable to both Basic and Crystal syntax:

UCase("Description")

Returns "DESCRIPTION".

UCase({customer.FIRST NAME})

Returns "RONALD", where {customer.FIRST NAME} contains "Ronald".

UCase("Ronald Black")

Returns "RONALD BLACK".

UCase("abc12345")

Returns "ABC12345".

UCase("BrEaD " + "AND " + "bUtTeR")

Returns "BREAD AND BUTTER".

Comments

This function is designed to work like the Visual Basic function of the same name.

Related topics

LCase (str)



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com